#pragma once
#include "input_document.h"
#include "indirect_object.h"
#include <ostream>

namespace Pdf
{
	class Splitter : public InputDocument
    {
    public:
		Splitter(std::istream &input, const std::string &password, bool fix);
		~Splitter();
                                        
		void                        savePage(std::ostream &output, const std::vector<int> &pageNumbers);

    private:
		class Inserter;

        IndirectObject              catalog;
        IndirectObject              pages;
    };
}